<template>
	<view>
		<block v-for="(item,index) in itemList" :key='index'>
			<view class="item">
				<image class="order-image" :src="item.thumbnail" mode=""></image>
				<view class="order-info">
					<view class="order-name">
						{{item.pname}}
					</view>
					<view class="order-price-count">
						<text class="count">x{{item.count}}</text>
						<view class="price">
							<text class="unit">￥</text>
							<text class="unit-price">{{item.price}}</text>
						</view>
					</view>
				</view>
			</view>
		</block>
	</view>
</template>

<script>
	export default {
		props: ['itemList'],
		data() {
			return {

			};
		},
		methods:{
			clickMai(e){
				
			}
		}
	}
</script>

<style scoped lang="less">
	@import '@/static/css/util.less';

	.item {
		margin-bottom: 20upx;
		display: flex;

		.order-image {
			width: 232upx;
			height: 152upx;
			border-radius: 8px;
			margin-right: 20upx;
		}

		.order-info {
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.order-name {
				font-size: 26upx;
				color: #474A58;
				.ellipsis-x(2)
			}

			.order-price-count {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.count {
					color: #8389A0;
					font-size: 26upx;
				}

				.price {
					color: #474A58;

					.unit {
						font-size: 26upx;
					}

					.unit-price {
						font-size: 30upx;
					}
				}
			}
		}
	}
</style>
